// demo.js
require('UIView, UIColor, UILabel')
defineClass('ViewController', {
            // replace the -genView method
            genView: function() {
            var view = self.ORIGgenView();
            view.setBackgroundColor(UIColor.greenColor());
            var label = UILabel.alloc().initWithFrame(view.frame());
            label.setText("JSPatch");
            label.setTextAlignment(1);
            var label2 = UILabel.alloc().initWithFrame({x:60, y:60, width:100, height:100});
            label2.setBackgroundColor(UIColor.lightGrayColor());
            label.addSubview(label2);
            label2.setText("This is Label2");
            
            view.addSubview(label);
            return view;
            }
});
